#ifndef __DESKTOP_H
#define __DESKTOP_H

#include <gui/widget.h>
#include <common/types.h>
#include <driver/mouse.h>

class Desktop : public CompositeWidget, public MouseEventHandler{

protected:
    uint32_t mouseX;
    uint32_t mouseY;

public:
    
    Desktop(int32_t w, int32_t h, uint8_t r, int8_t g, int8_t b);
    ~Desktop();
    virtual void Draw(GraphicsContext* gc);
    virtual void OnMouseMove(int8_t x,int8_t y);
    virtual void OnMouseDown(uint8_t button);
    virtual void OnMouseUp(uint8_t button);
    
};



#endif